package com.syw.dao;

import java.util.List;
import com.syw.entity.SywDept;
import com.syw.entity.SywMaintain;
import com.syw.entity.SywMaintainstate;
import com.syw.entity.SywUser;

public interface MaintainDao {
	//查询所有维修事由
	public List<SywMaintain> findAll();
	//根据部门查询部门维修
	public List<SywMaintain> findDept(SywUser su);
	//根据维修id查询维修记录
	public SywMaintain findMaintainId(SywMaintain sm);
	//根据条件查询
	public List<SywMaintain> findAppoint(SywUser su,int id,SywMaintain sywMaintain);
	//添加保修单
	public void addMaintain(SywMaintain sm);
	//根据id查询部门
	public SywDept findDeptid(int id);
	//根据id查询维修状态
	public SywMaintainstate findMid(int id);
	//指定id修改维修单
	public void updateMaintain(SywMaintain sm);
	//指定id完成维修单
	public void updateMaintains(SywMaintain sm);
}
